package com.dunshan.dunshanmongodb.service;

import com.dunshan.dunshanmongodb.pojo.MongoTest;
import com.dunshan.dunshanmongodb.pojo.User;

import java.util.List;

public interface MongoTestService {
    void save(MongoTest user);

    void saveAll(List<MongoTest> userList);

    void delete(Long id);

    MongoTest findById(Long id);

    MongoTest findByName(String name);

    List<MongoTest> testFindAll();

    void updateTest(MongoTest test);

    List<User> findAll();

}
